package pres.lnk.learn.designpattern.f_adapter.adapter2;

import pres.lnk.learn.designpattern.f_adapter.Voltage220;
import pres.lnk.learn.designpattern.f_adapter.Voltage5;

/**
 * @Author lnk
 * @Date 2018/2/6
 */
public class Voltage5Adapter extends Voltage220 implements Voltage5 {
    @Override
    public int output5() {
        //原来电压220V
        int src = super.output220();
        //适配电压到5V
        int out = src / 44;
        return out;
    }
}
